/**
 * Create in 2012-4-26.
 */
package kit4j.common.lang.time;

import java.util.Calendar;
import java.util.Date;
import java.util.Locale;
import java.util.TimeZone;

/**
 * 
 * @author MiniKnife
 * 
 */
public class YearsTimeUnitStrategy extends AbstractCalendarTimeUnitStrategy {

	public YearsTimeUnitStrategy() {
		super();
	}

	public YearsTimeUnitStrategy(TimeZone zone) {
		super(zone);
	}

	public YearsTimeUnitStrategy(Locale locale) {
		super(locale);
	}

	public YearsTimeUnitStrategy(TimeZone zone, Locale locale) {
		super(zone, locale);
	}

	/**
	 * @see kit4j.common.lang.time.AbstractCalendarTimeUnitStrategy#nextTime(java.util.Calendar)
	 */
	@Override
	protected Date nextTime(Calendar calendar) {
		calendar.add(Calendar.YEAR, 1);
		
		return calendar.getTime();
	}

}
